<form id="form_dadospais" name="form_dadospais" class="form-horizontal"
	action="<?php echo url_for('aluno/salvarDadosPais'.(!$form->getObject()->isNew() ? '?id_aluno='.$form->getObject()->getIdAluno() : '')) ?>"
	method="post">
	<input type="hidden" name="id_aluno" value="<?php echo $form->getObject()->getIdAluno() ?>" /> 
	<?php echo $form->renderHiddenFields() ?>

<h5>Dados do Pai</h5>
<table class="table table-striped table-bordered table-condensed">
	<tr>
		<th><?php echo $form['st_pai']->renderLabel() ?></th>
		<td><?php echo $form['st_pai'] ?><?php echo form_error('st_pai'); ?></td>
	</tr>
	<tr>
		<th><?php echo $form['nm_pai']->renderLabel() ?></th>
		<td><?php echo $form['nm_pai'] ?><?php echo form_error('nm_pai'); ?></td>
		<th><?php echo $form['dt_nascimento_pai']->renderLabel() ?></th>
		<td><?php echo $form['dt_nascimento_pai'] ?><?php echo form_error('dt_nascimento_pai'); ?></td>
	</tr>
	<tr>
		<th><?php echo $form['nm_profissao_pai']->renderLabel() ?></th>
		<td><?php echo $form['nm_profissao_pai'] ?><?php echo form_error('nm_profissao_pai'); ?></td>
		<th><?php echo $form['nm_empresa_pai']->renderLabel() ?></th>
		<td><?php echo $form['nm_empresa_pai'] ?><?php echo form_error('nm_empresa_pai'); ?></td>
	</tr>
	<tr>
		<th><?php echo $form['nu_telefone_celular_pai']->renderLabel() ?></th>
		<td><?php echo $form['nu_telefone_celular_pai'] ?><?php echo form_error('nu_telefone_celular_pai'); ?></td>
		<th><?php echo $form['nu_telefone_comercial_pai']->renderLabel() ?></th>
		<td><?php echo $form['nu_telefone_comercial_pai'] ?><?php echo form_error('nu_telefone_comercial_pai'); ?></td>
	</tr>
</table>
<h5>Dados da Mãe</h5>
<table class="table table-striped table-bordered table-condensed">
	<tr>
		<th><?php echo $form['st_mae']->renderLabel() ?></th>
		<td><?php echo $form['st_mae'] ?><?php echo form_error('st_mae'); ?></td>
	</tr>
	<tr>
		<th><?php echo $form['nm_mae']->renderLabel() ?></th>
		<td><?php echo $form['nm_mae'] ?><?php echo form_error('nm_mae'); ?></td>
		<th><?php echo $form['dt_nascimento_mae']->renderLabel() ?></th>
		<td><?php echo $form['dt_nascimento_mae'] ?><?php echo form_error('dt_nascimento_mae'); ?></td>
	</tr>
	<tr>
		<th><?php echo $form['nm_profissao_mae']->renderLabel() ?></th>
		<td><?php echo $form['nm_profissao_mae'] ?><?php echo form_error('nm_profissao_mae'); ?></td>
		<th><?php echo $form['nm_empresa_mae']->renderLabel() ?></th>
		<td><?php echo $form['nm_empresa_mae'] ?><?php echo form_error('nm_empresa_mae'); ?></td>
	</tr>
	<tr>
		<th><?php echo $form['nu_telefone_celular_mae']->renderLabel() ?></th>
		<td><?php echo $form['nu_telefone_celular_mae'] ?><?php echo form_error('nu_telefone_celular_mae'); ?></td>
		<th><?php echo $form['nu_telefone_comercial_mae']->renderLabel() ?></th>
		<td><?php echo $form['nu_telefone_comercial_mae'] ?><?php echo form_error('nu_telefone_comercial_mae'); ?></td>
	</tr>
</table>

<?php
	comandos_form(
		link_to(
			':: Voltar ::',
			$sf_context->getModuleName().'/list',
			array('class' => 'btn')
		),
		submit_tag(':: Salvar ::', array('class' => 'btn btn-primary'))
	);
?>
</form>

<script type="text/javascript">
function carregarId(response, id)
{
	$(id).value(response);
}

$(function(){
	$('#aluno_dt_nascimento_pai').mask('99/99/9999');
	$('#aluno_nu_telefone_celular_pai').mask('(99) 9999-9999');
	$('#aluno_nu_telefone_comercial_pai').mask('(99) 9999-9999');
	$('#aluno_dt_nascimento_mae').mask('99/99/9999');
	$('#aluno_nu_telefone_celular_mae').mask('(99) 9999-9999');
	$('#aluno_nu_telefone_comercial_mae').mask('(99) 9999-9999');

	System.formdata.save(new Array("msgAlerta", "Atenção:"), true);
});
</script>